<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

class FreightTemplate extends Model
{
    use HasFactory;

    protected $fillable = ['admin_id', 'name', 'status', 'default_freight', 'description'];


    public function freights()
    {
        return $this->hasMany(FreightTemplateKey::class, 'freight_id');
    }
    public function admins()
    {
        return $this->belongsTo(Admin::class, 'admin_id');
    }
}
